Token Denoms
Queries the available token denoms for the specified token Id on the specified chains.
query Token_denoms($denom: String, $tokenId: String, $chainUid: [String!]) {
  token {
    token_denoms(denom: $denom, token_id: $tokenId, chain_uid: $chainUid) {
      denoms {
        chain_uid
        token_type {
          ... on NativeTokenType {
            native {
              denom
            }
          }
          ... on SmartTokenType {
            smart {
              contract_address
            }
          }
          ... on VoucherTokenType {
            voucher
          }
        }
      }
      token_id
    }
  }
}
Example
curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://testnet.api.euclidprotocol.com/graphql' \
    --data '{"query":"query Token_denoms($tokenId: String, $chainUid: [String!], $denom: String) {\n  token {\n    token_denoms(token_id: $tokenId, chain_uid: $chainUid, denom: $denom) {\n      denoms {\n        chain_uid\n        token_type {\n          ... on NativeTokenType {\n            native {\n              denom\n            }\n          }\n          ... on SmartTokenType {\n            smart {\n              contract_address\n            }\n          }\n          ... on VoucherTokenType {\n            voucher\n          }\n        }\n      }\n      token_id\n    }\n  }\n}","variables":{"denom":"0x41d722eeb7fd5283e82074e5e471648408604eac"}}'
Arguments
| Argument | Type | Description | 
|---|---|---|
| denom | String | Optional filter to match a specific token denomination ( eth,0x41d722eeb7fd5283e82074e5e471648408604eacetc...) | 
| tokenId | String | Optional filter to match a specific token identifier. | 
| chainUid | [String!] | Optional list of chain UIDs to filter the token denoms by chain. | 
Return Fields
| Field | Type | Description | 
|---|---|---|
| tokenId | String | The unique identifier for the token. | 
| chain_uid | [String] | The chain UID where the token is available. | 
| native | Native | Details of the native tokens (Denoms). | 
| smart | Smart | Details of the CW20 tokens (Contract addresses). | 
| voucher | String | Details about the Voucher token. | 
| Field | Type | Description | 
|---|---|---|
| native | Native | Details of the native tokens (Denoms). | 
| smart | Smart | Details of the CW20 tokens (Contract addresses). | 
| voucher | String | Details about the Voucher token. | 
Native
| Field | Type | Description | 
|---|---|---|
| denom | String | The denomination of the native token. | 
Smart
| Field | Type | Description | 
|---|---|---|
| contractAddress | String | The contract address of the smart token. |